<?
	$htmlData = '';
	if (!empty($_POST['NContent'])) {
		if (get_magic_quotes_gpc()) {
			$htmlData = stripslashes($_POST['NContent']);
		} else {
			$htmlData = $_POST['NContent'];
		}
	}
?>
	<link rel="stylesheet" href="../kindeditor/examples/index.css" />
	<script charset="utf-8" src="../kindeditor/kindeditor.js"></script>
<script>
		KE.show({
			id : 'NContent',
			imageUploadJson : '../kindeditor/php/upload_json.php',
			fileManagerJson : '../kindeditor/php/file_manager_json.php',
			allowFileManager : true,
			afterCreate : function(id) {
				KE.event.ctrl(document, 13, function() {
					KE.util.setData(id);
					document.forms['example'].submit();
				});
				KE.event.ctrl(KE.g[id].iframeDoc, 13, function() {
					KE.util.setData(id);
					document.forms['example'].submit();
				});
			}
		});
	</script>

